// RLFLaserParamProtocol.h: interface for the RLFLaserParamProtocol class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CO2LASERPARAMPROTOCOL_H__35B8E4BA_035F_41CF_B709_393D7BA9FFCB__INCLUDED_)
#define AFX_CO2LASERPARAMPROTOCOL_H__35B8E4BA_035F_41CF_B709_393D7BA9FFCB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ComPort.h"


class CRLFLaserProtocol  
{
public:
	int TranslateParam(double dFrequence, double dDuty, double dRatePower);
	int GetParam(double& dFrequence, double& dDuty);
	int SetParam(double dFrequence, double dDuty, double dRatePower);
	bool InitPort(int iPort, DWORD iBaud);
	CRLFLaserProtocol();
	virtual ~CRLFLaserProtocol();

	CComPort m_SendPort;
	ComPortDCB m_SendDCB;
	
private:
	double m_dFrequence;
	double m_dDuty;

};

#endif // !defined(AFX_CO2LASERPARAMPROTOCOL_H__35B8E4BA_035F_41CF_B709_393D7BA9FFCB__INCLUDED_)
